import 'package:app/common_widget/colors.dart';
import 'package:flutter/material.dart';
import 'hexcolor.dart';

final ThemeData appThemeData = ThemeData(
  fontFamily: 'Poppins',
  primaryColor: HexColor('#2A39E1'),
  // fontFamily: 'NotoSansTC',
  brightness: Brightness.light,
  textSelectionTheme: TextSelectionThemeData(
    cursorColor: AppColor.themeColor,
    selectionColor:  AppColor.themeColor,
    selectionHandleColor:  AppColor.themeColor,
  ),
  appBarTheme: _appbarTheme(),
  iconTheme: const IconThemeData(
    color: Colors.blue
  ),

);

AppBarTheme _appbarTheme() {
  return AppBarTheme(
    // centerTitle: true,

    // color: new Color.fromRGBO(38,116,251,1),
    color: Colors.white,
    // color: HexColor('#2A39E1'),
    elevation: 0,
    iconTheme: IconThemeData(color:Colors.black),  // 图标

  );
}